package org.testis.gui.mvc.utilities;

import java.util.LinkedList;
import javax.swing.event.TableModelListener;
import javax.swing.table.TableModel;

import org.testis.utils.parametermodel.ParameterModel;
import org.testis.utils.parametermodel.ParameterTable;

/**
 *
 * @author Cahit Emir Erel
 */
public class ParameterTableModel extends ParameterTable implements TableModel{
    private LinkedList<TableModelListener> m_listeners = new LinkedList<TableModelListener>();
    
    public ParameterTableModel() {
        super();
    }
    
    public ParameterTableModel(ParameterModel[] list) {
        super(list);
    }
    
    public ParameterTableModel(ParameterModel[] list, String[] columns) {
        super(list,columns);
    }
    
    public ParameterTableModel(String[] inputParameters, String[] inputValues, String[] columns) {
        super(inputParameters,inputValues,columns);
    }
    
    
    public void addTableModelListener(TableModelListener arg0)
    {
        m_listeners.add(arg0);
    }


    public void removeTableModelListener(TableModelListener arg0)
    {
        m_listeners.remove(arg0);
    }
}
